const connection = require("../db/connection");

function changeCount(productName,num){
    connection.query("update product set 数量=? where 名称=?",[num,productName],(error,_)=>{
        if(error){
            console.log("修改商品数量失败！",error);
            process.exit(1);
        }
    });
}

module.exports = changeCount;